import { MyRequestOptions,HttpResponse } from './type';
import request from '@/utils/api/request';

export const getEmployerWorkList = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/manpower/getEmployerWorkList`;
  return request.post(option);
};

export const getHousekeeperView = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/housekeeper/getHousekeeperView`;
  return request.post(option);
};

export const statIncome = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/finance/statIncome`;
  return request.post(option);
};


// 团队  查询用户团队界面的信息
export const queryTeamInfo = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/team/queryTeamInfo`;
  return request.post(option);
};

//查询我的收益记录
export const queryScoreIncreaseList = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/team/queryScoreIncreaseList`;
  return request.post(option);
};

//查询我的直邀用户
export const queryUserInviteList = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/team/queryUserInviteList`;
  return request.post(option);
};




export const queryWaitShare = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/team/queryUserWaitSettleShare`;
  return request.get(option);
};

export const querySeasonActivity = (
  option: MyRequestOptions = {}
): Promise<HttpResponse> => {
  option.url = `/app/activity/querySeasonActivity`;
  return request.get(option);
};

